// mircoApp/new_coupon/components/coupon_Combination/coupon_Combination.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    first: {
      type: Boolean,
      value: false
    },
    infoData: {
      type: null
    },
    can_combination: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },
  lifetimes: {
    attached: function () {
      let language = wx.getStorageSync("langIndex");
      this.setData({
        language: language.en,
        isDIyStyle: `
          --coupon_bg:${this.properties.first?'rgba(241, 83, 83, 0.5)':'#d6d6dc'};
          --coupon_txtC:${this.properties.first?'rgba(241, 83, 83, 0.5)':'#000'}
        `
      });
    }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    to_newCombination() {
      this.triggerEvent('newCombination')
    }
  }
})